package com.qnbc.mystery.service.impl;

import java.util.List;

import com.qnbc.mystery.pojo.domain.PmsFeightTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.qnbc.mystery.mapper.PmsFeightTemplateMapper;
import com.qnbc.mystery.service.IPmsFeightTemplateService;

/**
 * 运费模版Service业务层处理
 *
 * @author guzj
 * @date 2024-01-24
 */
@Service
public class PmsFeightTemplateServiceImpl implements IPmsFeightTemplateService
{
    @Autowired
    private PmsFeightTemplateMapper pmsFeightTemplateMapper;

    /**
     * 查询运费模版
     *
     * @param id 运费模版主键
     * @return 运费模版
     */
    @Override
    public PmsFeightTemplate selectPmsFeightTemplateById(Long id)
    {
        return pmsFeightTemplateMapper.selectPmsFeightTemplateById(id);
    }

    /**
     * 查询运费模版列表
     *
     * @param pmsFeightTemplate 运费模版
     * @return 运费模版
     */
    @Override
    public List<PmsFeightTemplate> selectPmsFeightTemplateList(PmsFeightTemplate pmsFeightTemplate)
    {
        return pmsFeightTemplateMapper.selectPmsFeightTemplateList(pmsFeightTemplate);
    }

    /**
     * 新增运费模版
     *
     * @param pmsFeightTemplate 运费模版
     * @return 结果
     */
    @Override
    public int insertPmsFeightTemplate(PmsFeightTemplate pmsFeightTemplate)
    {
        return pmsFeightTemplateMapper.insertPmsFeightTemplate(pmsFeightTemplate);
    }

    /**
     * 修改运费模版
     *
     * @param pmsFeightTemplate 运费模版
     * @return 结果
     */
    @Override
    public int updatePmsFeightTemplate(PmsFeightTemplate pmsFeightTemplate)
    {
        return pmsFeightTemplateMapper.updatePmsFeightTemplate(pmsFeightTemplate);
    }

    /**
     * 批量删除运费模版
     *
     * @param ids 需要删除的运费模版主键
     * @return 结果
     */
    @Override
    public int deletePmsFeightTemplateByIds(Long[] ids)
    {
        return pmsFeightTemplateMapper.deletePmsFeightTemplateByIds(ids);
    }

    /**
     * 删除运费模版信息
     *
     * @param id 运费模版主键
     * @return 结果
     */
    @Override
    public int deletePmsFeightTemplateById(Long id)
    {
        return pmsFeightTemplateMapper.deletePmsFeightTemplateById(id);
    }
}
